# _*_ encoding: utf-8 _*_
# __author__ = 'lx'
import settings
import paddleos.utils as ut


def import_dataset(path):
    """
    把路径下的所有文件转移到工作目录下：导入数据
    :param path:数据集所在路径
    :return:
    """

    name_log = r'../log/newest_d.txt'
    name = ut.read_last_line(name_log)
    dataset_name = 'D' + name
    mv_path = ut.os.path.join(settings.DATASETS, dataset_name)
    ut.copy_dir(path, mv_path)
    ut.write_last_line(name_log,name)




if __name__ == '__main__':
    import_dataset(r'C:\Users\Administrator\Desktop\makeup')